import request from '@/utils/request'

// 查询用户奖励消息列表
export function listReward(query) {
  return request({
    url: '/message/reward/list',
    method: 'get',
    params: query
  })
}

// 查询用户奖励消息详细
export function getReward(id) {
  return request({
    url: '/message/reward/' + id,
    method: 'get'
  })
}

// 新增用户奖励消息
export function addReward(data) {
  return request({
    url: '/message/reward',
    method: 'post',
    data: data
  })
}

// 修改用户奖励消息
export function updateReward(data) {
  return request({
    url: '/message/reward',
    method: 'put',
    data: data
  })
}

// 删除用户奖励消息
export function delReward(id) {
  return request({
    url: '/message/reward/' + id,
    method: 'delete'
  })
}

// 导出用户奖励消息
export function exportReward(query) {
  return request({
    url: '/message/reward/export',
    method: 'get',
    params: query
  })
}

// 删除用户奖励消息
export function logicRemoveReward(id) {
  return request({
    url: '/message/reward/logicRemove/' + id,
    method: 'delete'
  })
}

// 查询用户奖励消息列表
export function selectListRewardVo(query) {
  return request({
    url: '/message/reward/selectListVo',
    method: 'get',
    params: query
  })
}

// 查询用户奖励消息详细
export function getRewardVo(id) {
  return request({
    url: '/message/reward/selectVoById/' + id,
    method: 'get'
  })
}